package itHeima.lesson7;

public class demo8 {
    public static void main(String[] args) {

        int [] faceScores = {15,9000,10000,20000,9500,-5};

        int max = maxNumber( faceScores);
        System.out.println(max);

    }
    public static int maxNumber(int [] faceScores){
        int maxScore = faceScores[0];

        for (int i = 0; i < faceScores.length; i++) {
            if (faceScores[i] > maxScore){
                maxScore = faceScores[i];
            }
        }

        return maxScore;
    }

}
